import { Random } from "mockjs";
import { MockMethod } from "vite-plugin-mock";

export default [
  {
    url: "/getMemberList",
    method: "get",
    response: () => {
      return {
        success: true,
        data: {
          page: 1,
          total: 100,
          memberList: [
            {
              nickName: Random.cname(),
              avatar: Random.image(),
              sex: "1"
            }
          ]
        }
      };
    }
  }
] as MockMethod[];
